import greenfoot.*;  // (Actor, World, Greenfoot, GreenfootImage)

public class CrabWorld extends World
{
    /**
     * Create the crab world (the beach). Our world has a size 
     * of 560x560 cells, where every cell is just 1 pixel.
     */
    public CrabWorld() 
    {
        super(660, 660, 1);
        Crab a = new Crab();
        addObject(a,150,150);
        Longxia b = new Longxia();
        addObject(b,300,300);
        Longxia e = new Longxia();
        addObject(e,400,400);
        for(int i=1;i<8;i++){
            Worm c = new Worm();
            addObject(c,350+i*50,50+i*50);
        }
        for(int i=1;i<8;i++){
            Worm d = new Worm();
            addObject(d,350-i*50,50+i*50);
        }    
            
        /*GreenfootImage bg = getBackground();
        Color yanse;
        yanse = bg.getColor();
        yanse = Color.GREEN;
        bg.setColor(yanse);
        Font font1 = bg.getFont();
        Font font2 = bg.getFont();
        font1 = font1.deriveFont(150);
        bg.setFont(font1);
        //bg.drawString("成功！",200,300);
        */
    }
    
}